<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>选项卡菜单效果</title>
    <style>
        body,
        div,
        dl,
        dt,
        dd,
        ul,
        ol,
        li,
        h1,
        h2,
        h3,
        h4,
        h5,
        h6,
        pre,
        code,
        form,
        fieldset,
        legend,
        input,
        button,
        textarea,
        p,
        blockquote,
        th,
        td {
            margin: 0;
            padding: 0;
        }

        body {
            background: #fff;
            color: #555;
            font-size: 14px;
            font-family: Verdana, Arial, Helvetica, sans-serif;
        }

        td,
        th,
        caption {
            font-size: 14px;
        }

        h1,
        h2,
        h3,
        h4,
        h5,
        h6 {
            font-weight: normal;
            font-size: 100%;
        }

        address,
        caption,
        cite,
        code,
        dfn,
        em,
        strong,
        th,
        var {
            font-style: normal;
            font-weight: normal;
        }

        a {
            color: #555;
            text-decoration: none;
        }

        a:hover {
            text-decoration: underline;
        }

        img {
            border: none;
        }

        ol,
        ul,
        li {
            list-style: none;
        }

        input,
        textarea,
        select,
        button {
            font: 14px Verdana, Helvetica, Arial, sans-serif;
        }

        table {
            border-collapse: collapse;
        }

        html {
            overflow-y: scroll;
        }

        /* 清除浮动的伪样式 */
        .clearfix:after {
            content: ".";
            display: block;
            height: 0;
            clear: both;
            visibility: hidden;
        }

        .clearfix {
            *zoom: 1;
        }

        .tag {
            width: 800px;
            background-color: #f7f7f7;
            border-radius: 20px;
            margin: 15px auto 0px;
            text-align: center;
            font-size: 0px;

        }

        .tag span {
            display: inline-block;
            width: 130px;
            border-radius: 10px;
            background-color: #f7f7;
            padding: 10px 5px;
            font-size: 16px;
            margin: 10px 0px;
        }

        .tag span i {
            display: inline-block;
            width: 26px;
            height: 26px;
            background-color: #f7f7f7;
            vertical-align: middle;
            background-image: url(./images/icon.png);
        }

        .tag span i .icon1 {
            background-position: 26px;
        }
    </style>
</head>

<body>
    <div class="tag">
        <span><i class="icon1"></i>备孕期间</span>
        <span><i class="icon2"></i>怀孕</span>
        <span><i class="icon3"></i>0-1岁</span>
        <span><i class="icon4"></i>1-2岁</span>
        <span><i class="icon5"></i>2-3岁</span>
    </div>
</body>
<!-- f7f7f7 -->


</html>